package com.example.travel.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author : LinQingLiang
 * @file : Article.java
 * @Since : 2023/2/14 21:04
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Article {

    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("标题")
    private String name;
    @ApiModelProperty("文章内容")
    private String content;
    @ApiModelProperty("发布人")
    private String user;
    @ApiModelProperty("发布时间")
    private String time;

}
